﻿<!DOCTYPE html>
<html>
<head>
    <title>跳一跳-车辆信息结果</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    
    <link rel="icon" href="apachehaus.ico">
    <link rel='stylesheet prefetch' href='http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css'>
		<script src='http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js'></script>
		<script type="text/javascript" src="http://cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
		<script src="capture/capturewrapper.js"></script>
		<script src="capture/jquery.json-2.3.min.js"></script>
		<script src="capture/niuniucapture.js"></script>
		<script src="capture/push.js"></script>
		<script src="capture/entry.js"></script>
		<script type="text/javascript">
					$(document).ready(function() {
								$(document.body).mousedown(function(){
										checkCtrl(event);
								});
								var isWindows = /windows|win32/i.test(navigator.userAgent);
								if(isWindows) {
										$("#capture").text("点击此处截取当前屏幕，同时按住Ctrl将隐藏当前窗口");
										$("#capture").css("width","100%").addClass("btn btn-success");
										$("#capture").click(function(){
								    		StartCapture();
								    });
								} else {
										$("#capture").css("display","none");
								}
								
							  var items = [
						    	["成功执行2018/4/16 12:12，点击查看结果","https://gitee.com/thewire/todos/raw/master/high/C103Happy2018.xlsx"]
						    ];
						    
							  $(".search").keyup(function () {
									    var searchTerm = $(".search").val();
									    var listItem = $('.results tbody').children('tr');
									    var searchSplit = searchTerm.replace(/ /g, "'):containsi('")
									    
										  $.extend($.expr[':'], {'containsi': function(elem, i, match, array){
										        return (elem.textContent || elem.innerText || '').toLowerCase().indexOf((match[3] || "").toLowerCase()) >= 0;
										    }
										  });
										    
										  $(".results tbody tr").not(":containsi('" + searchSplit + "')").each(function(e){
										    $(this).attr('visible','false');
										  });
										
										  $(".results tbody tr:containsi('" + searchSplit + "')").each(function(e){
										    $(this).attr('visible','true');
										  });
										
										  var jobCount = $('.results tbody tr[visible="true"]').length;
										    $('.counter').text(jobCount + ' record(s).');
										
										  if(jobCount == '0') {$('.no-result').show();}
										    else {$('.no-result').hide();}
							  });
							  
							  clearTable();
							  loadData(items);
					});  
					
					function clearTable() {
							$("#detail tbody tr").remove();
					}
				
					function loadData(items) {
			    		for(var i = 0; i < items.length; i++) {
			        		var item = items[i];
			            insertTable(item[1], item[0]);
			        }
					}
					
					function insertTable(href, name) {
								var lines = [];
                lines.push('<td scope="row"><a target="_blank" href="' + href + '">' + name + '</a></td>');
                var line = lines.join('');
						
								$("<tr></tr>").append(line).appendTo("#detail tbody");
					}
		</script>
    <style type="text/css">
      body div{
      	width:100%;
				height:100%;
        padding:20px 20px;
      }
      .results tr[visible='false'],
      .no-result{
        display:none;
      }
      .results tr[visible='true']{
        display:table-row;
      }
      .counter{
        padding:8px; 
        color:#ccc;
      }
    </style>
</head>

<body>
		<div>
    <table id="detail" class="table table-hover table-bordered results">
      <tbody>
      </tbody>
    </table>
    <p align="middle">&#169; 2014-2018 Aka10 Inc. and <a href=mailto:AWEINSPIRING@163.com>AWEINSPIRING@163.com</a>, all rights reserved.</p>
		</div>
</body>
</html>